/**
 div目录转为h2 h3
*/
(function(E, $){

var Event = E.mod('Event'), Consts = E.consts;

Event.bind("oncomplete", function(){
	E.$('.hdwiki_tmml').each(function(){
		var o = $(this),
			text = o.text();
		o.replaceWith('<h2>'+ text +'</h2>');
	});

	E.$('.hdwiki_tmmll').each(function(){
		var o = $(this),
			text = o.text();
		o.replaceWith('<h3>'+ text +'</h3>');
	});
	//E.$('table').removeClass().addClass('jqe-table').attr({bordercolor:'#cccccc', border:'1'});
});

})(jQEditor, jQuery);